﻿<?php
include ('template/header.php');
 include("db_config.php"); 
   $link=Conectarse();
?>
<div align="center">
 <?php
			include ('template/menu.php');
			?>
	<table cellpadding="0" cellspacing="0" width="970" height="20">
		<!-- MSTableType="layout" -->
		<tr>
			<td valign="top" height="20" width="970" background="IMG/bg2.jpg">
			<!-- MSCellType="empty" -->
			&nbsp;</td>
		</tr>
	</table>
</div>
<div align="center">
	<table cellpadding="0" cellspacing="0" background="IMG/bg3.jpg" width="970" height="445">
		<!-- MSTableType="layout" -->
		<tr>
			<td valign="top" rowspan="2" width="15">
			<!-- MSCellType="empty" -->
			&nbsp;</td>
			<td height="42" background="IMG/bg5.jpg">
			<font face="Calibri" color="#FFFFFF">&nbsp;&nbsp; Bienvenido al 
			sistema </font>
			<font face="Calibri" color="#FF6600" style="font-weight: 700" size="2"><?php echo $_SESSION['usuario_nombre'] ?> <?php echo $_SESSION['usuario_apellido'] ?></font></td>
			<td valign="top" rowspan="2" width="10">
			<!-- MSCellType="empty" -->
			&nbsp;</td>
			<td valign="top" rowspan="2" width="10">
			<!-- MSCellType="empty" -->
			&nbsp;</td>
			
			<td valign="top" rowspan="2" width="15">
			<!-- MSCellType="empty" -->
			&nbsp;</td>
		</tr>
		<tr>
			<td valign="top" width="750">
			

<font color="#666666"><strong><font face="Calibri" size="2">Inicio</font><font face="Calibri" size="1"> &raquo; </font></strong></font><b><font color="#666666" size="2" face="Calibri">Alumnos postulados </font></b>
 		
  <?php
  
  
//    if(isset($_POST['p']))
//  		$p=$_POST['p'];
  $instruccion = "  select * from proypostulado";
      $consulta = mysql_query ($instruccion, $link)
         or die ("Fallo en la consulta");
     // $resultado = mysql_fetch_array ($consulta);

	$i=0;
	while($resultado=mysql_fetch_array($consulta)){
	$id_postulado=$resultado['id_postulado'];

	  $i++;
  ?>
    <table width="100%" border="0">
                <tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Nombre Proyecto: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed" ><?php echo $resultado['nombre'] ?></td>
				  <td width="11%"  align="left" style="border:1px solid #ededed" ><div align="center"><strong>Accion</strong></div></td>
                </tr>
                <tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Descripción: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['descripcion'] ?></td>
				  <td width="11%"  align="center" style="border:1px solid #ededed"><a href="aceptar_postu.php?id_postulado=<?php echo $id_postulado?>"><img src="IMG/aceptar.png" width="90" height="44" border="0" align="middle" /></a></td>
                </tr>
                <tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Empresa: </strong> </td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['empresa'];?></td>
				    <td width="11%"  align="center" style="border:1px solid #ededed"><a href="cancelar_postu.php?id_postulado=<?php echo $id_postulado?>"><img src="IMG/cancelar.png" width="90" height="44" border="0" align="middle" /></a></td>
                </tr>
                <tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Vacantes: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['vacantes'];?></td>
				  <td width="11%" >&nbsp;</td>
                </tr>
                <tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Carrera: </strong> </td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['carrera'];?></td>
				  <td width="11%"  >&nbsp;</td>
                </tr>
				<tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Fecha proyecto: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['fecha'];?></td>
				  <td width="11%" >&nbsp;</td>
                </tr>
				<tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Nombre Alumno: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['nombrealum'];?></td>
				  <td width="11%" >&nbsp;</td>
                </tr>
				<tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Apellido: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['apellido'];?></td>
				  <td width="11%" >&nbsp;</td>
                </tr>
				<tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>NC: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['nc'];?></td>
				  <td width="11%" >&nbsp;</td>
                </tr>
				<tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Carrera alumno: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['carreralum'];?></td>
				  <td width="11%" >&nbsp;</td>
                </tr>
				<tr>
                  <td width="11%"  align="left" style="border:1px solid #ededed"><strong>Fecha Postulado: </strong></td>
                  <td width="30%"  align="left" style="border:1px solid #ededed"><?php echo $resultado['fecha_postu'];?></td>
				  <td width="11%" >&nbsp;</td>
                </tr>
				<tr><strong>---------------------------------------------------------------------------------------------------------</strong>
				</tr>
              </table>
  <?php

  }
  ?>
		  <p>
	     
  <p></td>
		  <p>
	  </tr>
  </table>
</div>
<div align="center">
	<table cellpadding="0" cellspacing="0" width="970" height="20">
		<!-- MSTableType="layout" -->
		<tr>
			<td valign="top" height="20" width="970" background="IMG/bg4.jpg">
			<!-- MSCellType="empty" -->
			&nbsp;</td>
		</tr>
	</table>
</div>

</body>

</html>
